const Layout = () => import("@/layout/index.vue");

const routes = [
    {
        path: "/goods",
        name: "Goods",
        component: Layout,
        meta: {
            title: "商品管理",
            icon: "goods",
            affix: true,
            keepAlive: true,
            alwaysShow: true,
        },
        children: [
            {
                path: "/goods/list",
                name: "GoodsList",
                component: () => import("@/pages/goods/list.vue"),
                meta: {
                    title: "商品管理",
                    icon: "goods",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                },
            },
            {
                path: "/goods/category",
                name: "GoodsCategory",
                component: () => import("@/pages/goods/category.vue"),
                meta: {
                    title: "商品分类",
                    icon: "category",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                },
            },
            // 菜单
            {
                path: "/goods/menu",
                name: "GoodsMenu",
                component: () => import("@/components/common-list.vue"),
                meta: {
                    title: "宴会菜单",
                    icon: "menu",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                    table: 'tk_store_menu',
                },
            },
        ],
    }
];

export default routes;
